package com.bdqn.xu.dao.iml;

import com.bdqn.xu.dao.BaseDaoImpl;
import com.bdqn.xu.dao.ReplyDetailDao;
import com.bdqn.xu.pojo.ReplyDetail;
import org.springframework.stereotype.Repository;


@Repository("reply")
public class ReplyDetailDaoImpl extends BaseDaoImpl<ReplyDetail> implements ReplyDetailDao {
    @Override
   public ReplyDetail getreplybyid (int id){
       return findById(id);
    }

    @Override
    public   void addReply(ReplyDetail replyDetail){
        save(replyDetail);
    }

    @Override
    public void delReply(int id){
        deleteById(id);
    }
}
